package com.kaifamiao.www.demo.do0824;

import java.time.LocalDate;

public class Demo06 {
    public static void main(String[] args) {
        LocalDate now = LocalDate.now();
        System.out.println(now.getDayOfMonth());
        System.out.println(now.getDayOfWeek());
        System.out.println(now.getDayOfYear());
        System.out.println(now.getMonth().getValue());
        System.out.println(now.lengthOfMonth());
        System.out.println(now.lengthOfYear());
        //当前时间之前的日期
        LocalDate newLocalDate = now.plusMonths(-3);
        System.out.println(now);
        System.out.println(newLocalDate);
    }
}
